<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>商之联后台管理系统</title>
  <meta name="description" content="这是一个 table 页面">
  <meta name="keywords" content="table">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="{:C('ADMIN_IMAGE')}favicon.png"> <link rel="apple-touch-icon-precomposed" href="{:C('ADMIN_IMAGE')}app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="{:C('ADMIN_CSS')}amazeui.min.css"/>
  <link rel="stylesheet" href="{:C('ADMIN_CSS')}admin.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<!-- header start-->

<include file="Public:header"/>

<!-- header end-->

<div class="am-cf admin-main">
<!-- sidebar start -->
   <include file="Public:menu"/>
  <!-- sidebar end -->
  
  <!-- content start -->
  <div class="admin-content">

    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">活动产品管理</strong> / <small>产品列表</small></div>
    </div>
    <div class="am-g activ_item_search">
      <div class="selptheme" > 
      父主题:<select name="pthemeid" class='listptheme'>
      	<option value="0" >请选择</option>
        </select>
  	  </div>
     
      <div class="selctheme">
      	子主题：<select name='cthemeid' class='ctheme'>
        <option value="0"> 请选择</option>
      	
        </select>
      </div>

    </div>
    <!--筛选 start-->
    <div class='am-g'>
    <div class="am-u-sm-12 activ_tool">
      <button type="button" class="am-btn am-btn-primary am-btn-xs seachactiv">搜索</button>
      <button type="button" class="am-btn am-btn-primary am-btn-xs resetsearch">重置</button>
      <button type="button" class="am-btn am-btn-primary am-btn-xs addactiv">新增</button>
    </div>
    </div>
    <!--筛选end-->
    <div class="am-g">
      <div class="am-u-sm-12">
       
          <table class="am-table am-table-striped am-table-hover table-main  activetalbe" >
            <thead>
              <tr>
                <th class="table-check">
                <input type="checkbox" />
                </th>
                <th class="table-title">活动价格</th>
                <th class="table-date">子主题</th>
                <th class="table-title">父主题</th>
                <th class="table-title">产品名称</th>
                <th class="table-title">限购数量</th>
                <th class="table-title">参加活动产品数量</th>
                <th class="table-title">剩余产品数量</th>
                <th class="table-title">操作</th>   
              </tr>
          </thead>
          <tbody>
            <foreach name="items" item='item'>
            <tr>
              <td><input type="checkbox" value='{$item['id']}'/></td>
              <td>{$item['activ_price']}</td>
              <td>{$item['cname']}</td>
              <td>{$item['pname']}</td>
              <td>{$item['itemprop']}</td>
              <td>{$item['limit_num']}</td>
              <td>{$item['activ_num']}</td>
              <td>{$item['res_inventory']}</td>
              <td>        
                  <div class="am-btn-group am-btn-group-xs">             
                    <span class="am-icon-pencil-square-o"><a href="javascript:void(0)" value={$item['id']} class='editPro'>修改</a></span>  
                    <span class="am-icon-trash"><a  href="javascript:void(0)"  value='{$item['id']}' class="delPro">删除</a></span>                    
                  </div>
              </td>
            </tr>
            </foreach>
          </tbody>
        </table>
        
        <!-- 分页start-->
           <div class="am-fr page">
          <ul class="am-pagination" >
            <li>共<label id="count"> {$pagearr['count']}</label> 条记录</li>
            <li>共<label id="pagetotal" > {$pagearr['pagetotal']}</label> 页</li>          
            <li>当前第 <label id="currentpage"> {$pagearr['page']} </label> 页</li>
            <li><a href="javascript:void(0)" id="firpage" value="1" >第一页</a></li>
            <li><a href="javascript:void(0)" id="prepage" value={$pagearr['page']-1}>上一页</a></li>
            <li><a href="javascript:void(0)" id="nexpage" value={$pagearr['page']+1}>下一页</a></li>
            <li><a href="javascript:void(0)" id="laspage" value={$pagearr['pagetotal']}>最末页</a></li>
          </ul>
  </div>
        <!-- 分页end-->

        
      </div>

    </div>
  </div>
  <!-- content end -->
</div>
<!-- 修改活动产品弹出层start-->
<div class="am-popup" id="editPro">
  <div class="am-popup-inner">
    <div class="am-popup-hd">
      <h4 class="am-popup-title" >活动产品</h4>
      <span data-am-modal-close style="background-color:#E40A02; color:red;"class="am-close">&times;</span>
    </div>
    <div class="am-popup-bd">
       <table class="am-table am-table-striped am-table-hover editProtable ">
      
       <tbody >
         
       </tbody>
         
       </table>
       <input type="hidden" name="activitemid" >
      <p style="text-align: center;"> 
       <button type="button" class="am-btn am-btn-primary am-btn-xs saveactiv">确定</button>
       <button type="button" class="am-btn am-btn-primary am-btn-xs coloseactiv">取消</button>
       </p>
    </div>
  </div>
</div>
<!-- 弹出层end-->
<!-- 添加活动产品弹出层 -->
<div class="am-popup" id="addPro" style="" >
  <div class="am-popup-inner">
    <div class="am-popup-hd">
      <h4 class="am-popup-title" >添加活动产品</h4>
      <span data-am-modal-close style="background-color:#E40A02; color:red;"class="am-close">&times;</span>
    </div>
    <div class="am-popup-bd">
       <div>
        产品名称：<input name="keywords">
        <button type="button" class="am-btn am-btn-primary am-btn-xs" id="activseach">搜索</button>
        <button type="button" class="am-btn am-btn-primary am-btn-xs coloseactiv">重置</button> 
       </div>

       <h4>产品搜索结果</h4>
       <div>
         <table class="am-table am-table-striped am-table-hover addProtable ">
           <thead>
           <tr>
             <th class="table-check"><input type="checkbox"></th>
             <th>序号</th>
             <th>产品名称</th>
             <th>类目名称</th>
             <th>公司名称</th>
           </tr>
         </thead>
         <tbody > 
         </tbody>  
         </table>
            <div class=" page">
                <ul class="am-pagination" >
                  <li>共<label class="count"> </label> 条记录</li>
                  <li>共<label class="pagetotal" > </label> 页</li>
                  <li>当前第 <label class="addcurrentpage">  </label> 页</li>
                  <li><a href="javascript:void(0)" class="resfirpage" value="1" >第一页</a></li>
                  <li><a href="javascript:void(0)" class="resprepage" value=>上一页</a></li>
                  <li><a href="javascript:void(0)" class="resnexpage" value=>下一页</a></li>
                  <li><a href="javascript:void(0)" class="reslaspage" value=>最末页</a></li>
                </ul>
            </div>
            
        </div>
         <div>
              <div class="am-fr page">
                <span>
                 父主题：
                  <select class="addptheme" name="addptheme">
                    <option value="0">请选择父主题</option>
                  </select>
                </span>
                <span>
                子主题：
                    <select class="ctheme" name="addctheme">
                       <option value="0">请选择子主题</option>
                    </select>
                </span>
              </div>
             <table class="am-table am-table-striped am-table-hover searchresult ">
               <thead>
               <tr>
                 <th>序号</th>
                 <th>产品名称</th>
                 <th>类目名称</th>
                 <th>活动价</th>
                 <th>数量</th>
                 <th>限购数量</th>
                 <th>操作</th>
               </tr>
             </thead>
             <tbody >    
             </tbody>  
             </table>
          </div>
        <p style="text-align: center;"> 
         <button type="button" class="am-btn am-btn-primary am-btn-xs addActivItem">添加</button>
         <button type="button" class="am-btn am-btn-primary am-btn-xs coloseActivItem">取消</button>
         </p>
      </div>
  </div>
</div>
<!-- 添加活动产品弹出层 -->

<script src="{:C('ADMIN_JS')}jquery.min.js"></script>
<include file="Public:footer"/>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="{:C('ADMIN_JS')}polyfill/rem.min.js"></script>
<script src="{:C('ADMIN_JS')}polyfill/respond.min.js"></script>
<script src="{:C('ADMIN_JS')}amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="{:C('ADMIN_JS')}amazeui.min.js"></script>
<!--<![endif]-->
<script src="{:C('ADMIN_JS')}app.js"></script>
<script src="{:C('ADMIN_JS')}admin.js"></script>
<script type="text/javascript">
  $(function(){
       var modultname="Activity";

       $('.'+modultname).addClass('am-in');
});
</script>
</body>
</html>
